package com.sanfeng.smbms.service.impl;

import com.sanfeng.smbms.common.utils.PageUtils;
import com.sanfeng.smbms.dao.CustomerDao;
import com.sanfeng.smbms.entity.CustomerEntity;
import com.sanfeng.smbms.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("customerService")
public class CustomerServiceImpl implements CustomerService {
    @Autowired
    private CustomerDao customerDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        return null;
    }

    @Override
    public List<CustomerEntity> queryPage() {
        return customerDao.queryPage();
    }

    @Override
    public CustomerEntity getById(Integer customerid) {
        return customerDao.getById(customerid);
    }

    @Override
    public void save(CustomerEntity customer) {
        customerDao.save(customer);
        return;
    }

    @Override
    public void updateById(CustomerEntity customer) {
        customerDao.updateById(customer);
        return;
    }

    @Override
    public void removeByIds(List customerids) {
        customerDao.removeByIds(customerids);
        return;
    }

}